<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:f="http://java.sun.com/jsf/core"
   xmlns:p="http://primefaces.org/ui">


   <p:megaMenu>
      <p:submenu label="#{msg['menu.register']}" 
            icon="ui-icon-pencil">
         <p:column>
            <p:submenu label="#{msg['menu.register.locales']}">
               <p:menuitem url="street.jsf" 
                  value="#{msg['menu.register.locales.street']}"  />
               <p:menuitem url="neighborhood.jsf?searchType=ALWAYS_SHOW" 
                  value="#{msg['menu.register.locales.neighborhood']}"  />
               <p:menuitem url="city.jsf" 
                  value="#{msg['menu.register.locales.city']}"  />
            </p:submenu>
         </p:column>
         
         <p:column>
            <p:submenu label="#{msg['menu.register.products']}">
               <p:menuitem url="product.jsf?searchType=ALWAYS_SHOW"
                  value="#{msg['menu.register.products.new']}" />
               <p:menuitem url="#"
                  value="#{msg['menu.register.products.stock']}" />
               <p:menuitem url="#"
                  value="#{msg['menu.register.products.list']}" />
            </p:submenu>
         </p:column>
         
         <p:column>
            <p:submenu label="#{msg['menu.register.user']}">
               <p:menuitem url="user.jsf?searchType=ALWAYS_SHOW"
                  value="#{msg['menu.register.user.new']}" />
               <p:menuitem url="#"
                  value="#{msg['menu.register.user.list']}" />
            </p:submenu>
         </p:column>
         
         <p:column>
            <p:submenu label="#{msg['menu.register.employee']}">
               <p:menuitem url="employee.jsf"
                  value="#{msg['menu.register.employee.new']}" />
               <p:menuitem url="employee.jsf"
                  value="#{msg['menu.register.employee.list']}" />
            </p:submenu>
         </p:column>
         
         <p:column>
            <p:submenu label="#{msg['menu.register.client']}">
               <p:menuitem url="client.jsf" 
                  value="#{msg['menu.register.client.new']}"  />
            </p:submenu>
         </p:column>         
      </p:submenu>
      
      <p:submenu label="#{msg['menu.list']}">
         <p:column>
            <p:submenu label="#{msg['crud.search']}">
               <p:menuitem url="#"
                     value="#{msg['menu.register.locales.street']}" />
               <p:menuitem url="search-neighborhood.jsf?searchType=NEVER_SHOW"
                     value="#{msg['menu.register.locales.neighborhood']}" />
               <p:menuitem url="search-city.jsf"
                     value="#{msg['menu.register.locales.city']}" />
               <p:menuitem url="search-product.jsf?searchType=NEVER_SHOW"
                     value="#{msg['menu.register.products']}" />
               <p:menuitem url="#"
                     value="#{msg['menu.register.user']}" />
               <p:menuitem url="search-employee.jsf?searchType=ALWAYS_SHOW"
                     value="#{msg['menu.register.employee']}" />
            </p:submenu>
         </p:column>
      </p:submenu>
      
   </p:megaMenu>

</ui:composition>
